package cn.lutu.dao.mapper;

import cn.lutu.protocol.entity.Category;
import cn.lutu.protocol.vo.CategoryListVO;
import cn.lutu.protocol.vo.CategoryStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @date 2023-06-08
 * @author luoyinhan
 * */
@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    /*查询类别列表*/
    List<CategoryListVO> selectCategories();

    int insert(Category category);

    /*根据ID获取标准类别*/
    CategoryStandardVO selectCategoryById(Long id);

    List<CategoryListVO> selectByParentId(Long parentId);

}
